Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG] mrp_production_request -> mrp_request: Migration to V14 #625

Closed
wants to merge 40 commits into from

Conversation

alan196
Copy link

@alan196 alan196 commented Mar 13, 2021

Proposed changes

Migration PR for module mrp_production_request

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Migration Update

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation

Further comments

The module was renamed to mrp_request.
I have changed the dependency from stock_available_unreserved to stock_free_qty as commented.

@alan196 alan196 mentioned this pull request Mar 13, 2021
23 tasks
@JordiBForgeFlow
Copy link
Member

JordiBForgeFlow commented Mar 13, 2021 via email

@alan196
Copy link
Author

alan196 commented Mar 15, 2021

I rename this module because of this comment in issue #534 from @LoisRForgeFlow

As discussed with @bealdav it would be would to rename mrp_production_request to mrp_resquest in v14.

But also I think that is better to use mrp_production_request to avoid migration issues, I can change the name.

What do you think @LoisRForgeFlow @bealdav ?

@JordiBForgeFlow
Copy link
Member

@alan196 Ah, ok, it was done to try to avoid very long name. then 👍 from my side.

@JordiBForgeFlow
Copy link
Member

@MiquelRForgeFlow can you advise on how to deal with this change of module and model name in openupgrade?

@alan196 alan196 force-pushed the 14.0-mig-mrp_production_request branch from ec434cf to ddb78ce Compare March 16, 2021 16:05
@alan196
Copy link
Author

alan196 commented Mar 16, 2021

@MiquelRForgeFlow @JordiBForgeFlow I created the migration scripts 👍 now it's ready to review!

@bealdav
Copy link
Member

bealdav commented Mar 17, 2021

Thanks for this work: coverage improved, rename, etc.

@MiquelRForgeFlow
Copy link
Contributor

Here OCA/OpenUpgrade#2618 I have done the module rename :)

@alan196 alan196 force-pushed the 14.0-mig-mrp_production_request branch from ddb78ce to 72d9536 Compare March 18, 2021 17:23
@alan196
Copy link
Author

alan196 commented Mar 18, 2021

@MiquelRForgeFlow All requested changes are done 👍 Could you help me to review 🙏

request = self.request_model.search(
[("product_id", "=", self.product_orderpoint.id)]
)
self.assertEqual(len(request), 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

travis is falling here

@dreispt
Copy link
Member

dreispt commented Jul 19, 2021

Travis is red

@HugOdoo
Copy link

HugOdoo commented Oct 26, 2021

Hello,

Is this PR alive and is it on its way to being fixed?

Thanks

@alan196 alan196 force-pushed the 14.0-mig-mrp_production_request branch 2 times, most recently from 791700f to 03ed45d Compare October 27, 2021 00:46
@alan196
Copy link
Author

alan196 commented Oct 27, 2021

I rebased the module and run the test locally and it works.

The issue with the test is raised when this module is installed with mrp_multi_level

The test validates if procurement is not generated twice if there is already an existing mrp.request

How can we proceed? It can be a bug caused with mrp_multi_level module? 🤔

@dreispt @MiquelRForgeFlow @JordiBForgeFlow

@HugOdoo
Copy link

HugOdoo commented Nov 16, 2021

@MiquelRForgeFlow

I'm following up on this, did you have the chance to look at it?

@MiquelRForgeFlow
Copy link
Contributor

Sorry, I didn't have free time to check this. I hope some else can help eventually :)

@oyale
Copy link

oyale commented Apr 4, 2022

Hi @alan196!

We at Coopdevs are willing to help in this migration. We've also run the module in local and its working almost fine (I only miss the label in the Manufacturing Request's checkbox at Inventory)

We've seen that the v13 maintainer for both this and mrp_multi_level modules is @LoisRForgeFlow, maybe he could do a code review?

Thank you all!

Best regards.

@alan196 alan196 force-pushed the 14.0-mig-mrp_production_request branch from 03ed45d to 1a510fe Compare April 5, 2022 13:29
@alan196
Copy link
Author

alan196 commented Apr 5, 2022

Hello @oyale

I have fixed the checkbox in the product template view. I also rebased the code. Could you help me to review 🙏.

@alan196 alan196 force-pushed the 14.0-mig-mrp_production_request branch from 1a510fe to 1a54ec9 Compare April 5, 2022 13:35
@dreispt
Copy link
Member

dreispt commented Apr 6, 2022

Unfortunately tests are failing:
https://app.travis-ci.com/github/OCA/manufacture/jobs/565929564#L1831

oca-travis and others added 25 commits August 2, 2023 07:01
Currently translated at 97.0% (96 of 99 strings)

Translation: manufacture-11.0/manufacture-11.0-mrp_production_request
Translate-URL: https://translation.odoo-community.org/projects/manufacture-11-0/manufacture-11-0-mrp_production_request/de/
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 99.0% (98 of 99 strings)

Translation: manufacture-11.0/manufacture-11.0-mrp_production_request
Translate-URL: https://translation.odoo-community.org/projects/manufacture-11-0/manufacture-11-0-mrp_production_request/de/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-12.0/manufacture-12.0-mrp_production_request
Translate-URL: https://translation.odoo-community.org/projects/manufacture-12-0/manufacture-12-0-mrp_production_request/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-13.0/manufacture-13.0-mrp_production_request
Translate-URL: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-mrp_production_request/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-13.0/manufacture-13.0-mrp_production_request
Translate-URL: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-mrp_production_request/
@alan196 alan196 force-pushed the 14.0-mig-mrp_production_request branch from c8359db to 1991e35 Compare August 2, 2023 13:01
@alan196
Copy link
Author

alan196 commented Aug 2, 2023

@elvise I have rebased, the issue related to another module is still affecting tests.

Copy link

github-actions bot commented Dec 3, 2023

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 3, 2023
@github-actions github-actions bot closed this Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs fixing stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.